package com.game.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.game.common.base.BaseEntity;
import lombok.Data;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 贫困用户图片表 pr_user_url
 * 
 * @author game
 * @date 2020-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pr_user_url")
public class PrUserUrl extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	/** 用户id */
    @TableField("u_id")
	private Integer uId;
	/** 0 大门 */
    @TableField("type")
	private Integer type;
	/** url 地址 */
    @TableField("url")
	private String url;
	/** 服务器本地存储地址 */
    @TableField("local_url")
	private String localUrl;


    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uId", getUId())
            .append("type", getType())
            .append("url", getUrl())
            .append("localUrl", getLocalUrl())
            .toString();
    }
}
